package com.kehutong.admin.entity;

import com.kehutong.admin.enums.CropPattern;
import org.coraframework.bean.valid.CheckField;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;


/**
 * 机构
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2019年4月16日下午5:53:31
 */
@Table(value="sys_corp", comment="企业", idType=IDType.TIMESTAMP)
public class Corp extends Entity {

	private static final long serialVersionUID = 601072030525113102L;

	protected Corp(String id) {
		super(id);
	}
	
	@Column(defValue = "NOT NULL", comment = "机构编码")
	private String code;
	
	@CheckField
	@Column(defValue = "NOT NULL", comment = "企业简称")
	private String name;
	
	@CheckField
	@Column(defValue = "NOT NULL", comment = "企业全称", length = 64)
	private String fullName;
	
	@Column(comment = "企微logo")
	private String logo;

	@Column(comment = "客户通logo")
	private String khtLogo;
	
	@Column(comment = "公司网站")
	private String url;

	@Column(length=255, comment = "联系地址")
	private String address;

	@Column(comment = "邮政编码")
	private String zip_code;

	@Column(comment = "行业类型")
	private String type;

	@Column(comment = "负责人")
	private String masterName;

	@Column(comment = "人员规模")
	private String staffSize;

	@Column(comment = "联系电话")
	private String phone;

	@Column(comment = "传真")
	private String fax;

	@Column(comment = "邮箱")
	private String email;

	@Column(comment = "逻辑删除")
	private boolean deleted;
	
	@JSONField(serialize=false)
	@Column(comment = "修改者")
	private String update_by;

	@JSONField(serialize=false)
	@Column(comment = "创建者")
	private String create_by;

	@Column(comment = "企业微信的id")
	private String wechatCorpId;

	@Column(defValue = "NOT NULL default '0'",comment = "公司数据模式")
	private CropPattern pattern;

	public String getWechatCorpId() {
		return wechatCorpId;
	}

	public void setWechatCorpId(String wechatCorpId) {
		this.wechatCorpId = wechatCorpId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getZip_code() {
		return zip_code;
	}

	public void setZip_code(String zip_code) {
		this.zip_code = zip_code;
	}

	public String getMasterName() {
		return masterName;
	}

	public void setMasterName(String masterName) {
		this.masterName = masterName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public String getUpdate_by() {
		return update_by;
	}

	public void setUpdate_by(String update_by) {
		this.update_by = update_by;
	}

	public String getCreate_by() {
		return create_by;
	}

	public void setCreate_by(String create_by) {
		this.create_by = create_by;
	}

	public String getKhtLogo() {
		return khtLogo;
	}

	public void setKhtLogo(String khtLogo) {
		this.khtLogo = khtLogo;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStaffSize() {
		return staffSize;
	}

	public void setStaffSize(String staffSize) {
		this.staffSize = staffSize;
	}

	public CropPattern getPattern() {
		return pattern;
	}

	public void setPattern(CropPattern pattern) {
		this.pattern = pattern;
	}
}